<?php

echo '<h1>Polls</h1>';
echo '<a href="pollbeheer/add" class="button_a">Poll toevoegen</a><table><tr><th>Poll titel</th><th>Acties</th></tr>';

while($poll = mysql_fetch_assoc($polls))
{
	echo '<tr>
		<td>' . $poll['vraag'] . ' (<a href="pollbeheer/results/' . $poll['id'] . '">resultaten</a>)</td>
		<td><a href="pollbeheer/edit/' . $poll['id'] . '">wijzig</a></td>
	</tr>';
}

echo '</table>';